# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=pfqueue
pkgver=0.5.6
pkgrel=1
pkgdesc="queue scanner for postfix"
url="https://pfqueue.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
makedepends="autoconf automake libtool ncurses-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.sourceforge.net/pfqueue/$pkgver/pfqueue-$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -iv
	update_config_sub
	update_config_guess
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
1bb622bba6d72ff98ee862d794854debcebabeff24cb6f06cecb06513f453cbb09f0cb8e5fa4c26bfde03aadbc5e803692279427021ccda10749a6c5a326bfb9  pfqueue-0.5.6.tar.gz
"
